<template>
  <div class="collect-page">
    <!-- 导航栏部分 -->
    <van-nav-bar title="我的出租" left-arrow @click-left="$router.back()" fixed />
   <div style="margin-top:45px">
     <OneHouse
      v-for="item in list"
      :key="item.houseCode"
      :item="item"
    ></OneHouse>
   </div>
  </div>
</template>

<script>
import { getRentList } from "@/api/message";
import OneHouse from "@/components/oneHouseList.vue";
export default {
  name: "collect-page",
  data() {
    return {
      list: [],
    };
  },
  components: {
    OneHouse,
  },
  async created() {
    const res = await getRentList();
    // console.log(res);
    this.list = res.body;
  },
};
</script>

<style></style>
